/*
 * @Author: '浪川' '1214391613@qq.com'
 * @Date: 2025-06-18 16:37:49
 * @LastEditors: '浪川' '1214391613@qq.com'
 * @LastEditTime: 2025-07-24 17:09:30
 * @FilePath: \passiflora-edulis-sims\src\router\routes.ts
 * @Description:
 *
 * Copyright (c) 2025 by '1214391613@qq.com', All Rights Reserved.
 */
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('src/layouts/HomeLayout.vue'),
    children: [
      { path: '', component: () => import('src/pages/HomePage.vue') },
      {
        path: '/crossword',
        component: () => import('src/pages/CrosswordPage.vue'),
      },
      {
        path: '/maze',
        component: () => import('src/pages/MazePage.vue'),
      },
      {
        path: '/sudoku',
        component: () => import('pages/SudokuPage.vue'),
      },
      {
        path: '/word-search',
        component: () => import('pages/WordSearchPage.vue'),
      },
      {
        path: '/scramble',
        component: () => import('pages/ScramblePage.vue'),
      },
      {
        path: '/double-puzzle',
        component: () => import('pages/DoublePuzzlePage.vue'),
      },
      {
        path: '/missing-letters',
        component: () => import('pages/MissingLettersPage.vue'),
      },
      {
        path: '/cryptogram',
        component: () => import('pages/CryptogramPage.vue'),
      },
      {
        path: '/word-match',
        component: () => import('pages/WordMatchPage.vue'),
      },
      {
        path: '/demo',
        component: () => import('pages/DemoPage.vue'),
      },
    ],
  },
  {
    path: '/create-book',
    component: () => import('src/layouts/CreateBookLayout.vue'),
    children: [
      {
        path: '',
        component: () => import('src/pages/CreateBook/PuzzleHomePage.vue'),
      },
    ],
  },
  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue'),
  },
]

export default routes
